<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>CMS-内容管理系统</title>
    <link rel="stylesheet" type="text/css" href="jquery-easyui-1.6.6/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="jquery-easyui-1.6.6/themes/icon.css">
    <script type="text/javascript" src="jquery-easyui-1.6.6/jquery.min.js"></script>
    <script type="text/javascript" src="jquery-easyui-1.6.6/jquery.easyui.min.js"></script>

    <style>
        .menu {
            border: none;
        }
        
        .menu li {
            width: 165px;
            border-bottom: 1px solid rgba(59, 57, 57, 0.568);
        }
        
        .menu li a {
            text-decoration: none;
            padding-left: 10px;
            font-size: 16px;
        }
        
        .menu li a:hover {
            color: red
        }
        
        .bgcolor {
            background-color: rgba(24, 22, 22, 0.267);
        }
    </style>
</head>

<body>

    <div class="easyui-layout" data-options="fit:true">
        <div data-options="region:'north'" class="bgcolor" style="height:50px; padding-bottom: 0">

            <div class="easyui-panel bgcolor " style="padding:5px; ">
                <a href="#" class="easyui-linkbutton" data-options="plain:true">首页</a>
                <a href="#" class="easyui-menubutton" data-options="menu:'#mm1',iconCls:'icon-edit'">编辑</a>
                <a href="#" class="easyui-menubutton" data-options="menu:'#mm2',iconCls:'icon-help'">帮助</a>
                <a href="#" class="easyui-menubutton" data-options="menu:'#mm3'">关于</a>
                <a href="#" id="hi" class="easyui-menubutton" data-options="menu:'#mm4'" style="float:right;margin-right: 30px">管理员</a>
            </div>
            <div id="mm1" style="width:150px;">
                <div data-options="iconCls:'icon-undo'">撤消</div>
                <div data-options="iconCls:'icon-redo'">重做</div>
                <div class="menu-sep"></div>
                <div>剪切</div>
                <div>复制</div>
                <div>粘贴</div>
                <div class="menu-sep"></div>
                <div>
                    <span>工具栏</span>
                    <div>
                        <div>地址</div>
                        <div>连接</div>
                        <div>导航工具栏</div>
                        <div>书签</div>
                        <div class="menu-sep"></div>
                        <div>更多</div>
                    </div>
                </div>
                <div data-options="iconCls:'icon-remove'">删除</div>
                <div>选择全部</div>
            </div>
            <div id="mm2" style="width:100px;">
                <div>帮助</div>
                <div>更新</div>
                <div>关于</div>
            </div>
            <div id="mm3" class="menu-content" style="background:#f0f0f0;padding:10px;text-align:left">
                <img src="http://www.jeasyui.com/images/logo1.png" style="width:150px;height:50px">
                <p style="font-size:14px;color:#444;">Try jQuery EasyUI to build your modern, interactive, javascript applications.</p>
            </div>
            <div id="mm4" style="width:150px; ">
                <div>个人资料</div>
                <div>密码设置</div>
                <div id="logout">退出</div>
            </div>
        </div>


        <div data-options="region:'south',split:true" style="height:50px;"></div>
        <div data-options="region:'west',split:true" title="站点" style="width:200px;">
            <div class="easyui-accordion" data-options="fit:true">
                <div title="分类管理" style="overflow:auto;padding:10px;">
                    <ul class="menu" data-options="fit:true" style="line-height:40px">
                        <li><a href="#" link="./components/user.html">用户管理</a></li>
                        <li><a href="#" link="./components/cate.html">评论管理</a></li>
                        <li><a href="#" link="./components/news.html">新闻管理</a>
                        </li>
                        <li><a href="#" link="./components/product.html">产品管理</a></li>
                    </ul>
                </div>
                <div title="用户管理" style="padding:10px ;">
                    <ul class="menu" data-options="fit:true" style="line-height:40px">
                        <li><a href="#" link="./components/qadduser.html">快速添加</a></li>
                        <li><a href="#" link="./components/user.html">信息管理</a></li>
                        <li><a href="#" link="./components/search.html">信息提取</a></li>
                    </ul>
                </div>
                <div title="新闻管理" style="padding:10px;">
                    <ul class="menu" data-options="fit:true" style="line-height:40px">
                        <li><a href="#" link="./components/user.html">信息提取</a></li>
                        <li><a href="#" link="./components/cate.html">信息管理</a></li>
                    </ul>
                </div>
                <div title="评论管理" style="padding:10px ;">
                    <ul class="menu" data-options="fit:true" style="line-height:40px">
                        <li><a href="#" link="./components/user.html">快速添加</a></li>
                        <li><a href="#" link="./components/cate.html">管理评论</a></li>
                        <li><a href="#" link="./components/cate.html">评论查询</a></li>
                    </ul>
                </div>
                <div title="产品管理" style="padding:10px;">
                    <ul class="menu" data-options="fit:true" style="line-height:40px">
                        <li><a href="#" link="./components/user.html">产品搜索</a></li>
                        <li><a href="#" link="./components/cate.html">管理产品</a></li>
                        <li><a href="#" link="./components/cate.html">添加产品</a></li>
                    </ul>
                </div>
                <div title="帮助" data-options="iconCls:'icon-help'" style="padding:10px;">
                    <a href="www.baidu.com">更多信息</a>
                </div>
            </div>
        </div>
        <div data-options="region:'center',title:'管理中心',iconCls:'icon-ok'">
            <div id="tt" class="easyui-tabs" data-options="fit :true"></div>
        </div>
    </div>
    <script>
        if (sessionStorage.name) {
            $('#hi').html('hello  管理员 ：' + sessionStorage.name)
        }
        $('#logout').click(function() {
            sessionStorage.setItem('name', '');
            location.href = '/';
            console.log(this)
        })
        var globalUrl = 'http://localhost:3000/'
        $(".menu li a").click(function() {
            var title = $(this).text();
            var link = $(this).attr('link');
            $('#tt').tabs('add', {
                title: title,
                fit: true,
                content: '<iframe scrolling="auto" frameborder="0" src="' + link + '" width="100%" height="100%"></iframe>',
                closable: true
            });
        })
    </script>
</body>

</html>